package com.keepmoving.vo;

import com.keepmoving.po.Commit;
import com.keepmoving.po.User;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 魏范彬
 * 封装评论的BO
 * 采用链表结构实现
 * 继承评论的实体类
 */
public class CommitBO extends Commit {

    /**
     * 评论的用户信息
     */
    private User user;

    /**
     * 下一条回复
     */
    private List<CommitBO> commitBO=new ArrayList<>();

    public CommitBO() {
    }

    public CommitBO(CommitBO commitBO) {
        super();
        setoId(commitBO.getoId());
        setlId(commitBO.getlId());
        setcSummary(commitBO.getcSummary());
        setLastId(commitBO.getLastId());
        setCreateDate(commitBO.getCreateDate());
//        this.user=commitBO.getUser;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<CommitBO> getCommitBO() {
        return commitBO;
    }

    public void setCommitBO(List<CommitBO> commitBO) {
        this.commitBO = commitBO;
    }
}
